package com.currency.mall.di.modlue;

import com.currency.mall.ui.main.HomeFragmentContract;
import com.currency.mall.ui.main.HomeFragmentPresent;
import com.mifengs.commonbase.di.scope.FragmentScope;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2018/12/12.
 */
@Module
public class HomeModule {

    public final HomeFragmentContract.View mView;

    public HomeModule(HomeFragmentContract.View mView) {
        this.mView = mView;
    }

    @FragmentScope
    @Provides
    public HomeFragmentPresent providePresenter() {
        return new HomeFragmentPresent(mView);
    }

}
